<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title><span py:replace="post.title">My little pony</span> - <span py:replace="blog.name">Ponies!!1!one!</span> - <span py:replace="blog.owner.display_name">Sara Swift</span></title>
</head>

<body id="post">
  <div class="Post">
    <div class="PostHead">
     <h1 class="title"><a href="#"></a><a title="Permanent Link to ${post.title}" href="${tg.url_for('posts', post=post)}" rel="bookmark">${post.title}</a></h1>
     <p class="PostDate">
       <strong class="day" py:content="post.creation_time.strftime('%d')">23</strong>
       <strong class="month" py:content="post.creation_time.strftime('%b')">Mar</strong>
       <strong class="year" py:content="post.creation_time.strftime('%Y')">Mar</strong>
     </p>
    </div>
  
    <div class="PostContent">
      <div>
	<div py:if="post_top_widgets" py:for="widget in post_top_widgets" class="post_top_widgets">
          <span py:replace="tg.ET(widget.display(post = post, blog = blog, post_url=tg.base_url, post_title=post.title, blog_name = blog.name, blog_rss = tg.url_for('rss2.0.xml')))" />
        </div>
      </div>

      <div py:content="HTML(post.getContentHtml())" />

      <div class="PostDetails">
	<div py:if="post_bottom_widgets" py:for="widget in post_bottom_widgets" class="post_bottom_widgets">
          <span py:replace="tg.ET(widget.display(post = post, blog = blog, post_url=tg.base_url, post_title=post.title, blog_name = blog.name, blog_rss = tg.url_for('rss2.0.xml')))" />
        </div>
      </div>

    </div>

      <div class="RelatedPosts" py:if="getattr(post, 'related_posts', None)">
        <h3>Related Posts</h3>
        <ul py:with="related_posts=post.related_posts">
          <li py:for="p in related_posts"><a href="${tg.url('posts', post=p)}" rel="bookmark" title="Permanent Link: ${p.title}">${p.title}</a></li>
        </ul>
      </div>

        <div id="surrounding-posts" py:with="surrounding_posts = post.surrounding_posts(1)">
            <span py:for="i, surrounding_post in enumerate(surrounding_posts)" py:strip="True">
               <div py:if="not surrounding_post==post and i == 0" class="previous"> &laquo;  <a href="${tg.url_for('posts', post=surrounding_post)}" py:content="surrounding_post.title"></a></div>
               <div py:if="not surrounding_post==post and i != 0" class="next"> <a href="${tg.url_for('posts', post=surrounding_post)}" py:content="surrounding_post.title"></a>&raquo; </div>
            </span>
        </div>


    <div class="Comments" id="comments" py:if="post.approved_comments">
      <div class="List">

        <h3>${len(post.approved_comments)} old-style comments</h3> 

        <ol>
          <li py:for="list_number, c in enumerate(post.approved_comments)" class="" id="comment-${c.comment_id}">
            <p><span class="ListUser">${tg.ET(c.getReference())}</span> &mdash; <a class="ListDate" href="#comment-${c.comment_id}" title="" py:content="c.posted_time.strftime('%B %d, %Y at %I:%M %p')">March 23rd, 2007 at 4:24 pm</a>.</p>
 
            <div class="ListContent" py:content="HTML(c.getContentHtml())" />
          </li>
        </ol>

        <!--
        <div id="comment-form">

          <h3 class="formhead">Have your say</h3>

          <div class="blog_add_comment"
            py:content="tg.ET(comment_form.display(action=tg.url_for('add_comment'),
            value=dict(postid=post.post_id)))" />

        </div>
        -->

      </div>
    </div>

    <div id="disqus_thread">
    </div>
    <noscript><a href="http://nxsy.disqus.com/?url=ref">View the forum thread.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>

  </div>
</body>
</html>
